package com.example.base.system.domain;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author X.I.O
 * @since 2024-02-21
 */

@Data
@ApiModel(description = "")
@TableName("sys_table_column")
public class SysTableColumn implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * 主键id
    */
    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;
    /**
    * 表id
    */
    @ApiModelProperty(value = "表id")
    private Integer tableId;
    /**
    * 列名
    */
    @ApiModelProperty(value = "列名")
    private String tableColumnName;
    /**
    * 字段
    */
    @ApiModelProperty(value = "字段")
    private String tableColumn;
    /**
    * 字段长度
    */
    @ApiModelProperty(value = "字段长度")
    private Integer tableColumnLength;

    @ApiModelProperty("字段排序")
    private Boolean tableSortable;

    @ApiModelProperty("字段固定")
    private Boolean tableFixed;

    @ApiModelProperty("字段隐藏")
    private Boolean tableHide;

    @ApiModelProperty("创建时间")
    private Date createtime;

    @ApiModelProperty("更新时间")
    private Date updatetime;

    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private JSONArray filters;


    public JSONArray getFilters() {
        return new JSONArray();
    }
}
